using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SkillManager : MonoBehaviour
{
    static public SkillManager instance;

    public DashSkill dashSkill { get; private set; }
    public CloneSkill cloneSkill { get; private set; }

    public SwordSkill swordSkill { get; private set; }

    public UltimateSkill ultimateSkill { get; private set; }

    public CounterAttackSkill counterAttackSkill { get; private set; }

    public CrystalSkill crystalSkill { get; private set; }

    private void Awake()
    {
        if (instance != null)
        {
            Destroy(instance.gameObject);
        }
        instance = this;

        dashSkill = GetComponent<DashSkill>();
        cloneSkill = GetComponent<CloneSkill>();
        swordSkill = GetComponent<SwordSkill>();
        ultimateSkill = GetComponent<UltimateSkill>();
        crystalSkill = GetComponent<CrystalSkill>();
        counterAttackSkill = GetComponent<CounterAttackSkill>();
    }

    private void Start()
    {

    }

    public void StudySkill()
    { 
        dashSkill.StudySkill();
        cloneSkill.StudySkill();
        swordSkill.StudySkill();
        ultimateSkill.StudySkill();
        crystalSkill.StudySkill();
        counterAttackSkill.StudySkill();
    }
}
